package com.attilax.cms;

 

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import aaaCfg.IocX;

import com.attilax.atian.PinyinX;
import com.attilax.io.pathx;
import com.attilax.lang.Trigger;
//import com.focusx.elmt.GvMaterial;

/**
 * com.focusx.elmt.Trigger4elemtShow
 * @author Administrator
 *
 */
public class Trigger4elemtShow extends Trigger {
	
	public static void main(String[] args) {
	///	TriggerChain.addTrigger(HttpServletRequest,new Trigger4elemt());
		HttpSession ss = null;
	//	TriggerChain.addTrigger(ss,"elmt",new Trigger4elemt());
	}
	@SuppressWarnings("all")
	public Object exec(Object object) {
	     List<Map> li=(List) object;
	     for(int i=0;i<li.size();i++)
	     {
	    	 Map m=li.get(i);
	    String up_dbg=	 (String) IocX.cfgMap.get("uploadfiles");
	    
	    String txt="uploadfiles/"+m.get("txt_file");
	    txt=pathx.replacePath(txt, "\\", "/");
	    m.put("txt_file",txt);
	    
	    String thumb="uploadfiles/"+m.get("thumb");
	    thumb=pathx.replacePath(thumb, "\\", "/");
	   
	    m.put("thumb",thumb  );
	     }
		return null;
	     
	    
	}
}
